import registerServer from '@/utils/register-server';
import chatServer from '@/utils/chat-server';
import api from '@/utils/api';

const { sendChat } = api;

const chatMethods = {
  sendChat: {
    url: sendChat,
    method: 'post',
  },
} as const;

const newChatService = registerServer<keyof typeof chatMethods>(chatMethods, chatServer);
export default newChatService;